package com.promfy.userinterface.views.imageview;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.widget.ImageView;

import com.ant.liao.GifView;
import com.ant.liao.GifView.GifImageType;
import com.promfy.R;

public class ImageViewActivity extends Activity {
	private ImageView imageView;
	private GifView gifView;
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.imageview);
		
//		imageView = (ImageView) findViewById(R.id.imageview);
//		Bitmap bm = BitmapFactory.decodeFile("/sdcard/0007.gif"); 
//		imageView.setImageBitmap(bm);
		InputStream is ;
		try {
			is = this.openFileInput("/sdcard/0007.gif");
			
			gifView.setGifImage(is);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}